<?php
	namespace Admin\Model;
	use Think\Model;
	class UsersModel extends Model{
		protected $_validate = array(
			array('yjl_username','require','用户名不能为空!',1),
			array('yjl_repass','yjl_pass','确认密码不正确',0,'confirm'),
			array('yjl_stunum','','该学号已经存在！',0,'unique',1)
		);
		protected $_auto = array(
			array('yjl_regtime','getdate',self::MODEL_INSERT,'callback'),
			array('yjl_pass','md5',self::MODEL_INSERT,'function')
		);
		function getdate(){
			return date('Y-m-d');
		}
	}
?>


